package com.modules.service.data.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.common.vo.Result;
import com.modules.dao.data.FaceDao;
import com.modules.entity.data.FaceEntity;
import com.modules.entity.project.ScanEntity;
import com.modules.service.data.FaceService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 人力资源大屏数据
 * </p>
 *
 * @author yyq
 * @since 2023-02-21
 */
@Service
public class FaceServiceImpl extends ServiceImpl<FaceDao, FaceEntity> implements FaceService {


    /**
     * 查询所有出勤统计
     * @return
     */
    @Override
    public Result<?> selectAttendCount() {
        FaceEntity faceEntity = baseMapper.selectAttendCount();
        return Result.success(faceEntity);
    }

    /**
     * 查询所有分包统计
     * @return
     */
    @Override
    public Result<?> selectContractor() {
        List<FaceEntity> list = baseMapper.selectContractor();
        return Result.success(list);
    }

    /**
     * 查询所有班组统计
     * @return
     */
    @Override
    public Result<?> selectGroup() {
        List<FaceEntity> list = baseMapper.selectGroup();
        return Result.success(list);
    }

    /**
     * 查询最后八天通行记录
     * @return
     */
    @Override
    public Result<?> selectScan8(ScanEntity scanEntity) {
        //List<ScanEntity> list = baseMapper.selectScan8(scanEntity);
        return Result.success();
    }

    /**
     * 获取大屏设置名称
     * @return
     */
    @Override
    public Result<?> selectDataName() {
        return Result.success("人脸抓拍分析数据大屏", Result.SUCCESS_MSG);
    }




}
